-- GENERATED SPELL FOR [Ground Commander Koup] --


function spell0_31808(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31808', 542, 1)
end

function Sorts_31808(pUnit, Event)
local choix_sorts_31808 = math.random(0, 0)
if choix_sorts_31808 == 0 then
pUnit:RegisterEvent('spell0_31808', 1, 1)
end
end

function mob31808_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31808', math.random(1500, 3000), 1)
end

function mob31808_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31808_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31808_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31808, 1, 'mob31808_Action')
RegisterUnitEvent(31808, 2, 'mob31808_Leave')
RegisterUnitEvent(31808, 3, 'mob31808_Kill')
RegisterUnitEvent(31808, 4, 'mob31808_Die')
